package cn.com.git.admin.service.dto;

import cn.com.git.common.base.BaseDTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
  * SysUser 列表dto
  * @author zhangzhenfu
  * @Description
  * @date 2020/5/8
*/
@Data
public class SysUserListDTO extends BaseDTO {

    @ApiModelProperty(value = "主表单")
    private SysUserListDTO.SysUser m;

    @Data
    public static class SysUser {
        @ApiModelProperty(value = "ID")
        private Integer id;

        @ApiModelProperty(value = "姓名")
        private String name;

        @ApiModelProperty(value = "账号")
        private String account;

        @ApiModelProperty(value = "手机号")
        private String telephone;

        @ApiModelProperty(value = "邮箱")
        private String email;

        @ApiModelProperty(value = "性别，1：男；0：女")
        private Integer sex;

        @ApiModelProperty(value = "最后登录ip")
        private String lastLoginIp;

        @ApiModelProperty(value = "最后登录时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date lastLoginTime;
    }

}